package jdwl.hrmgrsys.pojo.core;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.stereotype.Service;


/**
 * 系统参数
 * @author Huangdian
 *
 */
@Entity
@Table(name="sys_para")
@Service
public class SystemPara implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name="id")
	private Long id;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public SystemParaType getType() {
		return type;
	}
	public void setType(SystemParaType type) {
		this.type = type;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}

	@ManyToOne(cascade=CascadeType.PERSIST,targetEntity=SystemParaType.class,fetch=FetchType.EAGER)
	private SystemParaType type;//类型
	private String desc;//描述,界面展示
	private String code;//编码
}
